"""
@author:menglei
@desc:修改商品推广API
"""
from pdd.api.base import RestApi


class PddGoodsCpsUnitChangeRequest(RestApi):
    """
    @:param: goods_id:LONG:商品id
    @:param: rate:LONG:佣金比例（千分比）
    @:param: coupon_id:LONG:优惠券id
    @:param: coupon_start_time:STRING:优惠券开始时间
    @:param: coupon_end_time:STRING:优惠券结束时间
    @:param: discount:LONG:优惠券面额（单位为分）
    @:param: init_quantity:LONG:设置的优惠券张数
    @:param: remain_quantity:LONG:优惠券剩余数量
    """
    def __init__(self,domain='https://gw-api.pinduoduo.com'):
        RestApi.__init__(self, domain)
        self.goods_id = None
        self.rate = None
        self.coupon_id = None
        self.coupon_start_time = None
        self.coupon_end_time = None
        self.discount = None
        self.init_quantity = None
        self.remain_quantity = None

    def getapiname(self):
        return 'pdd.goods.cps.unit.change'